﻿@{
    ViewBag.Title = "用户管理";
}
@using PagedList
@using PagedList.Mvc
@model PagedList.IPagedList<zqdn.Web.ViewModels.UseriewModel>

<div class="pageheader">
    <h2><i class="fa fa-user"></i> 用户管理 </h2>
</div>

<div class="contentpanel">
    <div class="row">
        <a href="/admin/User/ExportExcel" class="btn btn-primary">导出</a>
    </div>
    <div class="row">
        <div class="table-responsive">
            <table class="table table-hidaction table-hover">
                <thead>
                    <tr>
                        <th>手机</th>
                        <th>OpenID</th>
                        <th>别名</th>
                        <th>省份</th>
                        <th>城市</th>
                        <th>医院</th>
                        <th>当前积分</th>
                        <th>注册时间</th>
                    </tr>
                </thead>
                <tbody>
                  @foreach (var item in Model)
                    {
                        <tr>
                            <td>@item.Mobile</td>
                            <td>@item.OpenId</td>
                            <td>@item.NikeName</td>
                            <td>@item.Province</td>
                            <td>@item.City</td>
                            <td>@item.Hospital</td>
                            <td>@item.Integral</td>
                            <td>@item.CreatedTime</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div><!-- table-responsive -->
        @Html.PagedListPager((PagedList.IPagedList)Model, page => Url.Action("Index", new
                           {
                               page,
                               adName = ViewBag.AdName
                           })
                            , PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(
                            new PagedListRenderOptions()
                            {
                                LinkToPreviousPageFormat = "上一页",
                                LinkToNextPageFormat = "下一页",
                                MaximumPageNumbersToDisplay = 5
                            }, new AjaxOptions()
                            {
                                HttpMethod = "GET"
                            }))
    </div><!-- row -->
</div>

 